import http from './index'

export function area(level, area_id) {
  return http.get('/area/area', { 
    params: {
      level, 
      area: area_id
    }
  })
}
export function asset(level, area) {
  return http.get('/member/asset/area', { 
    params: { level, area } 
  })
}

export function trade(data) {
  return http.post('/member/asset/area/trade', { data })
}

export function complete(area_id, area_level) {
  return http.post('/member/asset/area/complete', { area_id, area_level })
}